* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

.header {
    width: 100%;
    height: 40px;
    background-color: black;
}

.top {
    width: 80%;
    height: 40px;
    margin: 0 auto;
}

.top>ul>li {
    float: left;
    color: white;
    font-size: 12px;
    height: 40px;
    line-height: 40px;
    text-align: center;

}



.top>ul>li>a {
    color: white;
}


.top .left {
    float: left;

}

.top .left li {
    min-width: 60px;

}

.top .right {
    float: right;

}

.top .right li {
    margin-left: 10px;

}

.active {
    width: 100px;
    color: white;
    position: relative;
    background-color: rgba(255, 255, 255, 0.2);



}






.top .right .cart-div {
    width: 300px;
    height: 0px;
    background-color: white;
    position: absolute;
    right: 0;
    top: 40px;
    box-shadow: 0 0 10px rgb(219, 219, 218);
    transition: height 1s;
    -webkit-transition: height 1s;
    -moz-transition: height 1s;
    color: black;
    overflow: hidden;
    z-index: 9999;


}

.active:hover {
    background-color: white;

}

.active:hover a {
    color: black;

}

.active:hover .cart-div {
    height: 100px;

}




.nav {
    width: 80%;
    height: 100px;
    margin: 0 auto;
}

.nav .logo {
    width: 12%;
    height: 80px;
    float: left;
    text-align: center;
    margin-top: 20px;



}

.nav .logo img {
    width: 56px;
    height: 56px;

}

.nav .main-nav {
    width: 60%;
    height: 100px;
    float: left;
}

.nav .main-nav ul {
    width: 100%;
    height: 100px;

}

.nav .main-nav ul li {
    float: left;
    text-align: center;
    height: 100px;
    line-height: 100px;
    margin-left: 30px;
}

.nav .main-nav ul li a {
    color: black;

}


.nav .search {
    width: 28%;
    height: 100px;
    float: left;
    text-align: center;
    line-height: 100px;



}

.nav .search input {
    width: 250px;
    height: 50px;
    border: none;
    border: 1px solid black;
    position: relative;
    left: 6px;
    bottom: 2px;

}

.nav .search span {
    border: 1px solid black;
    width: 50px;
    height: 50px;
    line-height: 50px;
    display: inline-block;

}

.carousel {
    background-image: url(../images/carousel-a.jpg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    width: 80%;
    height: 460px;
    margin: 0 auto;
    background-color: black;

}


.carousel .carousel-left {
    width: 20%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    float: left;
    position: relative;

}

.carousel .carousel-right {
    width: 80%;
    height: 100%;
    float: right;

}

.carousel-left ul li {
    color: white;
    text-align: left;
    padding-left: 30px;
    height: 42px;
    line-height: 42px;



}

.carousel-left ul li h5 {
    font-weight: normal;
    font-size: 14px;

}


.carousel-left ul li:hover {
    background-color: #ff6700;
}


/*伪元素选择器*/
.carousel-left ul li h5::after {
    content: '>';
    position: absolute;
    right: 10px;



}

.carousel-left .carousel-left-list {
    position: absolute;
    min-width: 500px;
    height: 460px;
    background-color: white;
    left: 100%;
    display: none;
    top: 0;
    overflow: hidden;
    box-shadow: 0 0 10px gainsboro;


}

.carousel-left ul li:hover .carousel-left-list {
    display: inline-flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: flex-start;
    align-content: flex-start;

}




.carousel-left-list .product-box {
    width: 200px;
    height: 50px;
    margin: 10px;
    display: flex;
    flex-direction: row;

}

.carousel-left-list .text {
    color: #ff6700;
    font-size: 10px;
    display: inline-block;
    height: 50px;


}

.container {
    background-color: #f5f5f5;

}

.container .container-main {
    margin: 0 auto;
    min-height: 620px;
    width: 80%;


}

.container-header h2 {
    font-weight: normal;
    margin-top: 20px;
    margin-bottom: 10px;
}

.container-products .products-header {
    background-color: white;
    height: 620px;
    width: 240px;
    float: left;

}

.container-products .products-box {
    height: 620px;
    width: calc(100% - 240px);
    float: left;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

}

.products-box .product {
    background-color: white;
    margin-left: 10px;
    width: 230px;
    height: 300px;

}

.products-box .product:hover {
    box-shadow: 0 0 10px gainsboro;
}

.product .product-image {
    text-align: center;
}

.product .product-image img {
    width: 160px;
    height: 160px;
    margin: 20px;


}

.product .product-title {
    font-weight: normal;
    text-align: center;
    font-size: 14px;
    margin: 5px;
}

.product .product-desc {
    font-weight: normal;
    text-align: center;
    font-size: 12px;
    margin: 5px;
    color: grey;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;

}

.product .product-price {
    font-weight: normal;
    text-align: center;
    color: orange;
    margin: 5px;

}